
<%@ page import="Biblioteca.RelatorioTecnico" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
       <g:if test="${tipo == 'Admin'}">
        	<meta name="layout" content="adminBiblioteca" />
        </g:if>
        <g:else>
        	<meta name="layout" content="usuarioBiblioteca" />
        </g:else>
        <g:set var="entityName" value="${message(code: 'relatorioTecnico.label', default: 'RelatorioTecnico')}" />
        <title><g:message code="default.list.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="body">
            <h1><g:message code="Relatorios Tecnicos" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="list">
                <table>
                    <thead>
                        <tr>
                                               
                            <g:sortableColumn property="titulo" title="${message(code: 'relatorioTecnico.titulo.label', default: 'Titulo')}" />
                        
                            <g:sortableColumn property="autores" title="${message(code: 'relatorioTecnico.autores.label', default: 'Autores')}" />
                        
                            <g:sortableColumn property="ano" title="${message(code: 'relatorioTecnico.ano.label', default: 'Ano')}" />
                        
                            <g:sortableColumn property="tipo" title="${message(code: 'relatorioTecnico.tipo.label', default: 'Tipo')}" />
                            
                             <g:sortableColumn property="id" title="Detalhes"/>
                        
                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${relatorioTecnicoInstanceList}" status="i" var="relatorioTecnicoInstance">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                        
                                                  
                            <td>${fieldValue(bean: relatorioTecnicoInstance, field: "titulo")}</td>
                        
                            <td>${fieldValue(bean: relatorioTecnicoInstance, field: "autores")}</td>
                        
                            <td>${fieldValue(bean: relatorioTecnicoInstance, field: "ano")}</td>
                        
                            <td>${fieldValue(bean: relatorioTecnicoInstance, field: "tipo")}</td>
                            
                              <td><g:link action="show" id="${relatorioTecnicoInstance.id}">
                              Ver mais
                            </g:link></td>
                        
                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
            <div class="paginateButtons">
                <g:paginate total="${relatorioTecnicoInstanceTotal}" />
            </div>
        </div>
    </body>
</html>
